package main

import "fmt"

type Cat struct {

	Name string
	Age int
	Color string

}


func main() {

	// 定义猫1
	var cat1 Cat

	// 创建时，空间已经分配，所以属性有默认值
	fmt.Println(cat1.Name)
	fmt.Println(cat1.Age)
	fmt.Println(cat1.Color)

	cat1.Name = "小白"
	cat1.Age = 3
	cat1.Color = "white"

	fmt.Println(cat1.Name)
	fmt.Println(cat1.Age)
	fmt.Println(cat1.Color)

}